<?
require("config.php");

if ($p=="news") $table = "med_news";

if ($p=="news1") $table = "med_news1";

if ($p=="events") $table = "med_events";

if ($p=="newsletter") $table = "med_newsletter";

if ($p=="promotion") $table = "med_promotion";

$field = array(

"id",
"date",
"subject",
"details",
"picture1",

);

if ($p=="newsletter") {

$field = array(

"id",
"date",
"subject",
"details",
"picture1",

);

}

$exp = "AND id = $id ";
$r = unlimitQuery($table,$field,$exp);

$Date = $r[0][1];
$Subject = $r[0][2];
$Details = $r[0][3];
?>

<html>
<head>
<title><?=$Subject?></title>
</head>
<body>
<table border=0 width=640 cellpadding=0 cellspacing=1 bgcolor="#000000">
<tr>
    <td>
<table border=0 width=640 cellpadding=20 cellspacing=1 bgcolor="#FFFFFF">
<tr><td>

<font face="Times New Roman" size="3">
<p align = "center"><b><?=$Subject?></b></p>
<p align = "center">(<?=outDate($r[0][1])?>)</p>

<p><?=showPic($PIC_DIR . "$table/" . $r[0][4],"left")?> <?=$Details?></p>

<p>&nbsp;</p>
</font>
</td></tr></table>

</td></tr></table>

<table border=0 width=640 cellpadding=20 cellspacing=1 bgcolor="#FFFFFF">
<tr><td>

<br>
<p align="center">
<a href="http://www.acuityworld.com" target="_blank">http://www.acuityworld.com</a>
</p>
</td></tr></table>

</body>
</html>